package com.pmpd.activity.rpc;

import com.pmpd.activity.bo.api.StepAndSleepInfoBo;
import com.pmpd.activity.rpc.fallback.ActivitySenorRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author liuying
 * @Description 活动调用Senor模块
 * @Date 17:17 2018/6/9
 */
@FeignClient(name = "dmap-senor-server", fallback = ActivitySenorRpcFallback.class)
public interface ActivitySenorRpc {
    @RequestMapping(value = "/rpc/dmap-senor-server/v1/activity/select/stepAndSleepInfo", method = RequestMethod.GET)
    List<StepAndSleepInfoBo> selectSleepAndStep(@RequestParam(value = "list") List<Long> list, @RequestParam(value = "time") long time, @RequestParam(value = "type") int type);
}
